﻿using CL_SQL.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CL_SQL.BLL
{
    public class typeBLL
    {
        private typeDAL _typeDAL;
        public typeDAL TypeDAL
        {
            get
            {
                if (_typeDAL == null)
                    _typeDAL = new typeDAL();
                return _typeDAL;
            }
        }
        public List<Type> Alltype()
        {
            return TypeDAL.Alltype();
        }
        public Boolean Edit(Type type)
        {
            return TypeDAL.Edit(type);
        }
        public Boolean Add( Type type)
        {
            return TypeDAL.Add(type);
        }
        public Boolean Delete(int id)
        {
            return TypeDAL.Delete(id);
        }
    }
}
